package com.yuchen.ishop.goods;

import com.yuchen.core.MyPager;
import com.yuchen.ishop.entity.Goods;
import com.yuchen.jaxrs.Responses;

import java.util.Map;

/**
 * 商品模块
 */
public interface GoodsService {

    Responses insert(Goods goods);

    Responses delete(Long id);

    Responses update(Goods goods);

    MyPager find(Map params);

    MyPager findByLimit(Map params);

    Goods get(Long id);

    Responses existGoods(Long userId, Long id, String role);

    Boolean isAccessGoods(Long id);

    Responses lockGoods(Long id);

    Responses offGoods(Long id);

    Responses upGoods(Long id);

    Responses refresh(Long id);

}
